package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;
import com.lanchetech.entity.OnePost;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OnePostMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OnePost record);

    int insertSelective(OnePost record);

    OnePost selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OnePost record);

    int updateByPrimaryKey(OnePost record);

    List<OnePost> findAllPage(PageReq req);
}